<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Title</title>
</head>
<body>
<div style="width: 80%;margin: 25px 10%;" class="container">
    <form class="layui-form" id="form" action="">
        <div class="layui-form-item">
            <label class="layui-form-label">员工</label>
            <div class="layui-input-block">
                <select name="qvpaiId" id="qvpaiId" lay-verify="required">
                    <option value="-1">请选择</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">lng</label>
            <div class="layui-input-block">
                <input type="text" name="jingdu" id="jingdu" readonly  placeholder="请输入标题" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">lat</label>
            <div class="layui-input-block">
                <input type="text" name="weidu" id="weidu" readonly  placeholder="请输入标题" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">编号</label>
            <div class="layui-input-block">
                <input type="text" name="bianhao" id="bianhao" readonly  placeholder="请输入标题" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">详细地址</label>
            <div class="layui-input-block">
                <input type="text" name="xiangxi" id="xiangxi2" readonly  placeholder="请输入标题" autocomplete="off" class="layui-input">
            </div>
        </div>
        <!--<div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>-->
    </form>
</div>
</body>
</html>
<script>
    //Demo
    layui.use('form', function(){
        var form = layui.form;
        //监听提交
        form.on('submit(formDemo)', function(data){
            layer.msg(JSON.stringify(data.field));
            return false;
        });
    });
</script>
<script>
    $.get(new Local().base_url+"/user/qpfzr",function(data) {
        $.each(data.data, function () {
            var opt = $("<option></option>").appendTo("#qvpaiId");
            opt.text(this.name).val(this.id);
        });
        layui.form.render();
    });
</script>